import Vue from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';
// import Axios from 'axios';
import ElementUI from 'element-ui';

import 'element-ui/lib/theme-chalk/index.css';
// import 'font-awesome/css/font-awesome.css'

import { postRequest,
         getRequest,
         uploadFileRequest
  } from "./network/api";
//import { getRequest } from "./network/api";


Vue.config.productionTip = false;
Vue.use(ElementUI, {size: 'small'});
// axios 配置
// 1. 挂在vue原型链
Vue.prototype.postRequest = postRequest;
Vue.prototype.getRequest = getRequest;
Vue.prototype.uploadFileRequest = uploadFileRequest;

// 2. 默认请求路径
// Axios.defaults.baseURL = "/api";

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app');
